import { create } from "zustand";

export type IAppStore = {
  activeTab: string;
  isVerticalLayout: boolean;
  setActiveTab: (val: string) => void;
  setIsVerticalLayout: (val: boolean) => void;
};

const useAppStore = create<IAppStore>((set) => ({
  activeTab: '精进',
  isVerticalLayout: false,
  setActiveTab: (activeTab: string) => set({ activeTab }),
  setIsVerticalLayout: (isVerticalLayout: boolean) => set({ isVerticalLayout }),
}));

export default useAppStore;
